using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace c_
{
    public class Employee
    {
         public string? name;
        public int workYears,monthPay;
        public void groundLeader(string name,int workYears,int monthPay)
        {
            this.name = name;
            this.workYears = workYears;
            this.monthPay = monthPay;
            Console.WriteLine($"{this.name}组长的年薪是{this.monthPay+1000*this.workYears}");
        }
        public void manager(string name,int workYears,int monthPay)
        {
            this.name = name;
            this.workYears = workYears;
            this.monthPay = monthPay;
            Console.WriteLine($"{this.name}经理的年薪是{this.monthPay+1000*this.workYears}");
        }
    }
}